From 052b7f7cd319bd39f5c9db1b0322e9e4445a123e Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 22 Jun 2019 15:28:27 +0200 Subject: Test fixups pre-2.9.1 --- .../test_status_post[Content warning-private].yaml | 34 ++++++++++++---------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to 'tests/cassettes/test_status_post[Content warning-private].yaml') diff --git a/tests/cassettes/test_status_post[Content warning-private].yaml b/tests/cassettes/test_status_post[Content warning-private].yaml index cdb6f9c..24e396e 100644 --- a/tests/cassettes/test_status_post[Content warning-private].yaml +++ b/tests/cassettes/test_status_post[Content warning-private].yaml @@ -12,15 +12,14 @@ interactions: method: POST uri: http://localhost:3000/api/v1/statuses response: - body: {string: '{"id":"101999517463371727","created_at":"2019-04-27T18:18:41.463Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content - warning","visibility":"private","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/101999517463371727","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost/@mastodonpy_test/101999517463371727","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"reblog":null,"application":{"name":"Mastodon.py + body: {string: '{"id":"102315368797840479","created_at":"2019-06-22T13:03:50.347Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content + warning","visibility":"private","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/102315368797840479","url":"http://localhost/@mastodonpy_test/102315368797840479","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John - Lennon","locked":true,"bot":false,"created_at":"2019-04-27T20:03:12.393Z","note":"\u003cp\u003eI - walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","followers_count":0,"following_count":0,"statuses_count":63,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} + Lennon","locked":true,"bot":false,"created_at":"2019-06-22T14:46:28.567Z","note":"\u003cp\u003eI + walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","followers_count":0,"following_count":0,"statuses_count":1,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} headers: - Cache-Control: ['max-age=0, private, must-revalidate'] + Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"6c31bad9865e0c540f1e7334c39f305f"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -28,10 +27,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [7b54a81a-992e-4742-ab2c-22d82e6f620b] - X-Runtime: ['0.143576'] + X-Request-Id: [369f2e8c-2028-47d2-a19d-1800080e0ec5] + X-Runtime: ['0.129036'] X-XSS-Protection: [1; mode=block] - content-length: ['1598'] + content-length: ['1597'] status: {code: 200, message: OK} - request: body: null @@ -43,13 +42,16 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: DELETE - uri: http://localhost:3000/api/v1/statuses/101999517463371727 + uri: http://localhost:3000/api/v1/statuses/102315368797840479 response: - body: {string: '{}'} + body: {string: '{"id":"102315368797840479","created_at":"2019-06-22T13:03:50.347Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content + warning","visibility":"private","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/102315368797840479","url":"http://localhost/@mastodonpy_test/102315368797840479","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"text":"Toot!","reblog":null,"application":{"name":"Mastodon.py + test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John + Lennon","locked":true,"bot":false,"created_at":"2019-06-22T14:46:28.567Z","note":"\u003cp\u003eI + walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","followers_count":0,"following_count":0,"statuses_count":1,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} headers: - Cache-Control: ['max-age=0, private, must-revalidate'] + Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"a938512bc5dde87cbf4f41409207e918"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -57,9 +59,9 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [e77df297-ede4-4d89-907c-a5fc45c913a8] - X-Runtime: ['0.054208'] + X-Request-Id: [18b6ace3-8df2-4cd0-ada7-0ac78904396b] + X-Runtime: ['0.085398'] X-XSS-Protection: [1; mode=block] - content-length: ['2'] + content-length: ['1567'] status: {code: 200, message: OK} version: 1 -- cgit v1.2.3